﻿using EntityModels.Entities;
using Microsoft.EntityFrameworkCore;

namespace EntityModels.DbContexts
{
    /// <summary>
    /// 模型字段
    /// </summary>
    public class FieldEntityDbContext : DbContext
    {

        public DbSet<FieldEntity> FieldEntities => Set<FieldEntity>();

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<FieldEntity>(b =>
            {
                b.Property(f => f.Id);
                b.Property(f => f.Text);
            });
        }

    }
}
